Full-Stack

Welcome Portfolio Projects Contact
↑ Go Back ↑

Custom SSH welcome screen with bashrc

Custom SSH welcome screen with bashrc

bashrc method

Put the following content into ~/.bashrc to get a fancy startup screen when connecting via SSH.

echo ""
echo "Getting your current prophecy ..." | lolcat --animate --duration=20
#ponysay --pony=angel --ponyonly
echo ""
fortune
echo ""
echo "Welcome to the Super-Server!" | lolcat
echo ""
echo "LXD container status:" | lolcat
lxc list
echo ""
echo "Type 'webserver' to enter the webserver container" | lolcat

To use it, install fortune and ponysay:

sudo apt install ponysay
sudo apt install fortune